package com.qiji.video.bean.vo;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class CommentAndUsers {
    private Integer id;

    private Integer videosId;

    private Integer fromUid;

    private String content;

    private Integer toUid;

    private Integer likes;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date commentTime;

    private String name;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getVideosId() {
        return videosId;
    }

    public void setVideosId(Integer videosId) {
        this.videosId = videosId;
    }

    public Integer getFromUid() {
        return fromUid;
    }

    public void setFromUid(Integer fromUid) {
        this.fromUid = fromUid;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Integer getToUid() {
        return toUid;
    }

    public void setToUid(Integer toUid) {
        this.toUid = toUid;
    }

    public Integer getLikes() {
        return likes;
    }

    public void setLikes(Integer likes) {
        this.likes = likes;
    }

    public Date getCommentTime() {
        return commentTime;
    }

    public void setCommentTime(Date commentTime) {
        this.commentTime = commentTime;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return "CommentAndUsers{" +
                "id=" + id +
                ", videosId=" + videosId +
                ", fromUid=" + fromUid +
                ", content='" + content + '\'' +
                ", toUid=" + toUid +
                ", likes=" + likes +
                ", commentTime=" + commentTime +
                ", name='" + name + '\'' +
                '}';
    }
}
